package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_user_recharge_times", autoSave = true)
public class LogUserRechargeTimes {

    @FieldTypeAnnotation(isIndex = true)
    long userId;

    @FieldTypeAnnotation(desc = "充值次数")
    long times;

    @FieldTypeAnnotation(desc = "在线时长")
    long onlineTime;

    @FieldTypeAnnotation(desc = "角色等级")
    int titleId;

    @FieldTypeAnnotation(desc = "关卡进度")
    int passId;

    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogUserRechargeTimes(long userId, long times, long onlineTime, int titleId, int passId) {
        this.userId = userId;
        this.times = times;
        this.onlineTime = onlineTime;
        this.titleId = titleId;
        this.passId = passId;
        this.logTime = new Date();
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getTimes() {
        return times;
    }

    public void setTimes(long times) {
        this.times = times;
    }

    public long getOnlineTime() {
        return onlineTime;
    }

    public void setOnlineTime(long onlineTime) {
        this.onlineTime = onlineTime;
    }

    public int getTitleId() {
        return titleId;
    }

    public void setTitleId(int titleId) {
        this.titleId = titleId;
    }

    public int getPassId() {
        return passId;
    }

    public void setPassId(int passId) {
        this.passId = passId;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
}
